package com.xingzuo.library_translation.presenter;

import com.xingzuo.base.ui.mvp.base.presenter.BasePresenter;

import com.xingzuo.base.ui.mvp.base.refresh.BaseRecyclerRefreshPresenter;
import com.xingzuo.base.ui.mvp.base.refresh.RequestCallback;
import com.xingzuo.library_translation.bean.TranslationBean;
import com.xingzuo.library_translation.contract.TranslationContract;

import java.util.ArrayList;
import java.util.List;

public class TranslationPresenter extends BaseRecyclerRefreshPresenter<TranslationContract.View, TranslationBean> implements TranslationContract.Presenter{
    @Override
    public void onRefresh(RequestCallback<TranslationBean> callback) {
        List<TranslationBean> list=new ArrayList<>();
        list.add(new TranslationBean());
        list.add(new TranslationBean());
        list.add(new TranslationBean());
        list.add(new TranslationBean());
        list.add(new TranslationBean());
        callback.onSuccess(list);
    }

    @Override
    public void onLoadMore(RequestCallback<TranslationBean> callback) {

    }
}